package zhihui.mobile.ui.shop.order;

import java.util.List;

import zhihui.mobile.bean.shop.SkuInfo;
import zhihui.mobile.bean.shop.address.ShoppingAddress;
import zhihui.mobile.bean.shop.sales.CouponInfo;
import zhihui.mobile.bean.wx.WeixinPayInfo;
import zhihui.mobile.presenter.IPresenter;
import zhihui.mobile.ui.IView;

/**
 * Created by 张公铭 on 2017/9/1 0001.
 */

public interface IShopOrderConfirmContract
{
    interface IShopOrderConfirmView extends IView
    {
        void updateAddress(ShoppingAddress address);

        void updateSales(CouponInfo couponInfo);

        void updateShopList(List<SkuInfo> list);

        void updateShopInfo(int shopCount, double money);

        void showAddressDialog(List<ShoppingAddress> list);

        void showCouponDialog(List<CouponInfo> list);

        void showPayDialog();

        void ilPay(String data);

        void refreshAddressDialog();

        void weixinPay(WeixinPayInfo payInfo);

        void refreshButtonBuy(int state);

        void showGoShopCartDialog();
    }

    interface IShopOrderConfirmPresenter extends IPresenter
    {
        void initData();

        void getAddressList();

        void createOrder();

        void updateCurAddress(ShoppingAddress address);

        void getSalesList();

        void ilpay();

        void weixinPay();

        void goOrderDetail();
    }
}
